{template header}

<div class="container">

<div class="row">

<div class="col-md-8">

    {template menu}

<div class="bbox bbox-nbt" id="info">

    <div class="swiper-container">

    <ul class="nav nav-pills" style="padding: 10px">
        {if isMobile()}

        <li>
            <select onchange="jumpto(this.options[this.options.selectedIndex].value)" name="typeid" id="typeid" class="form-control">
                <option value="{tsUrl('user','duty',array('id'=>$strUser['userid']))}">服务</option>
                <option value="{tsUrl('user','event',array('id'=>$strUser['userid']))}" >活动</option>
                <option value="{tsUrl('user','article',array('id'=>$strUser['userid']))}"  >文档</option>
                <option value="{tsUrl('user','wish',array('id'=>$strUser['userid']))}"  selected>心愿</option>
                <option value="{tsUrl('user','gift',array('id'=>$strUser['userid']))}" >义卖</option>
                <option value="{tsUrl('user','weibo',array('id'=>$strUser['userid']))}">动态</option>
                {if $GLOBALS['TS_USER']['isadmin']=='1'}
                <option value="{tsUrl('user','comment',array('id'=>$strUser['userid']))}" >备注</option>
                {/if}

            </select>
        </li>
        {else}
        <li role="presentation"><a href="{tsUrl('user','duty',array('id'=>$strUser['userid']))}">服务</a></li>
        <li role="presentation"><a href="{tsUrl('user','event',array('id'=>$strUser['userid']))}">活动</a></li>
        <li role="presentation"><a href="{tsUrl('user','article',array('id'=>$strUser['userid']))}">文档</a></li>
        <li role="presentation" class="active"><a href="{tsUrl('user','wish',array('id'=>$strUser['userid']))}">心愿</a></li>
        <li role="presentation"><a href="{tsUrl('user','gift',array('id'=>$strUser['userid']))}">义卖</a></li>
        <li role="presentation"><a href="{tsUrl('user','weibo',array('id'=>$strUser['userid']))}">动态</a></li>
        {if $GLOBALS['TS_USER']['isadmin']=='1'}
        <li role="presentation"><a href="{tsUrl('user','comment',array('id'=>$strUser['userid']))}" style="color: green">备注</a></li>
        {/if}
        {/if}
    </ul>

<div class="bc">


<div class="topic_list">
    {if $arrWish}
   <div style="padding-bottom: 10px;padding-left:40px;text-decoration: underline"><small>ta帮助达成了如下心愿</small></div>
<ul>
    {loop $arrWish $key $item}
    <li>

        <div class="userimg"><a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}"><img class="img-rounded" src="{$item[user][face]}" width="32" height="32" alt="{$item['user']['username']}" title="{$item['user']['username']}" /></a></div>

        <div class="topic_title">
            <div class="title">
                <a title="{$item[title]}" href="{tsUrl('wish','show',array('id'=>$item[wishid]))}{$mylink}">{$item[title]}</a>
            </div>
            <div class="topic_info">
<span style="float:left;">
<a href="{tsUrl('wish','type',array('id'=>$item['typeid']))}">{$item[type][typename]}</a>
</span>

<span style="float:right;">
{php echo getTime($item[addtime],time())}

<a href="{tsUrl('user','duty',array('id'=>$item[userid]))}">{$item[user][username]}</a>

{if $item[count_userwish]>0}<a class="rank" style="color:#FFFFFF;" href="{tsUrl('wish','show',array('id'=>$item[wishid]))}">{$item[count_userwish]}</a>{/if}
</span>
            </div>

        </div>

        <div class="clear"></div>

    </li>

    {/loop}

</ul> {else}
    <div>没有认领过心愿</div>
    {/if}
</div>

<div class="clear"></div>
<div class="page">{$pageUrl}</div>
</div>
</div>
</div>



</div>
</div>

<script>
    var swiper = new Swiper('.swiper-container');
</script>
{template footer}